<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>门诊信息</title>
<link href="../../../css/style.css" rel="stylesheet" type="text/css">
  <link href="../../../bootstrap-3.3.7-dist/css/bootstrap.css" rel="stylesheet">
<script language="javascript" src="../../../js/clientSideApp.js"></script>
<script language="JavaScript" type="text/javascript" src="../../../js/win_center.js"></script>
  <script src="../../../bootstrap-3.3.7-dist/js/jquery-3.4.1.min.js"></script>
  <script src="../../../bootstrap-3.3.7-dist/js/bootstrap.js"></script>
<SCRIPT language=JavaScript type=text/JavaScript>
function windowOpen(theURL,winName,features,width,hight,scrollbars,top,left) 
{
  var parameter="top="+top+",left="+left+",width="+width+",height="+hight;
  if(scrollbars=="no")
 {parameter+=",scrollbars=no";}
  else
 {parameter+=",scrollbars=yes";}
  window.open(theURL,winName,parameter);
}
</SCRIPT>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="25" align="center" valign="bottom" class="td06"><table width="98%" border="0" cellspacing="3" cellpadding="0">
      <tr>
        <td width="15"><img src="../../../images/index_32.gif" width="9" height="9"></td>
        <td valign="bottom" class="title">挂号信息</td>
      </tr>
    </table></td>
  </tr>
</table>
<br>
  <table width="95%"  border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
      <td class="td_page">日期：
        <input name="textfield1" type="date" class="input">

        <input name="Submit" type="button" class="buttonface02" value="  查询  ">
      </td>
    </tr>
  </table>
<br>
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0" class="table01">
  <tr> 
    <td align="center" class="td_top">挂号编号</td>
    <td class="td_top">患者</td>
    <td class="td_top">挂号类型</td>
    <td class="td_top">所在科室</td>
    <td class="td_top">挂号费</td>
    <!--<td class="td_top">操作</td>-->
  </tr>
<!--  <tr> -->
<!--    <td align="center" class="td_01">1</td>-->
<!--    <td class="td_01">阿宝</td>-->
<!--    <td class="td_01">专家门诊(急诊，一般门诊，专科门珍)</td>-->
<!--    <td class="td_01">内科</td>-->
<!--    <td class="td_01">50.00<span>元</span></td>-->

<!--  </tr>-->
</table>
<table width="95%"  border="0" cellpadding="0" cellspacing="0" class="table02" align="center">
  <tr>
    <td height="30" align="right"><img src="../../../images/1.gif" width="4" height="5" align="absmiddle"> 首页　 <img src="../../../images/2.gif" width="3" height="5" align="absmiddle"> 上一页　 <img src="../../../images/2-2.gif" width="3" height="5" align="absmiddle"> 下一页　 <img src="../../../images/3.gif" width="4" height="5" align="absmiddle"> 末页　　共 1 页 1 条记录</td>
  </tr>
</table>
<h1 id="hh"></h1>
</body>
<script>
  $("input[name='Submit']").on("click",function () {
    $.ajax({
      url: "http://localhost:10012/feign/select",
      type: "get",
      headers: {
        Accept: "application/json; charset=utf-8",
        Authorization: location.href.split("=")[1]
      },
      data:{
        "patrdate":$("input[name='textfield1']").val()
      },
      dataType: "json",
      success: function (data) {
        $.each(data.data,function (index,obj) {
          $("table[class='table01']").append("  <tr> \n" +
                  "    <td align=\"center\" class=\"td_01\">"+obj.patientinformation.patid+"</td>\n" +
                  "    <td class=\"td_01\">"+obj.people.pname+"</td>\n" +
                  "    <td class=\"td_01\">"+obj.particulars.pardrugname+"</td>\n" +
                  "    <td class=\"td_01\">"+obj.department.deptype+"</td>\n" +
                  "    <td class=\"td_01\">"+obj.particulars.parprice+"<span>元</span></td>\n" +
                  "    \n" +
                  "  </tr>")
        })
      }
    });
  })
  $(document).ready(function () {
    var time = new Date();
    var day = ("0" + time.getDate()).slice(-2);
    var month = ("0" + (time.getMonth() + 1)).slice(-2);
    var today = time.getFullYear() + "-" + (month) + "-" + (day);
    $("input[name='textfield1']").val(today);
  })
</script>
</html>
